package com.example.travel.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName testmodel_topic
 */
public class TestmodelTopic implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String topic;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private String author;

    /**
     * 
     */
    private Integer authorid;

    /**
     * 
     */
    private Integer up;

    /**
     * 
     */
    private Integer number;

    /**
     * 
     */
    private Date time;

    /**
     * 
     */
    private Integer show;

    /**
     * 
     */
    private String authorimg;

    /**
     * 
     */
    private String contentimg;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getTopic() {
        return topic;
    }

    /**
     * 
     */
    public void setTopic(String topic) {
        this.topic = topic;
    }

    /**
     * 
     */
    public String getContent() {
        return content;
    }

    /**
     * 
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 
     */
    public String getAuthor() {
        return author;
    }

    /**
     * 
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * 
     */
    public Integer getAuthorid() {
        return authorid;
    }

    /**
     * 
     */
    public void setAuthorid(Integer authorid) {
        this.authorid = authorid;
    }

    /**
     * 
     */
    public Integer getUp() {
        return up;
    }

    /**
     * 
     */
    public void setUp(Integer up) {
        this.up = up;
    }

    /**
     * 
     */
    public Integer getNumber() {
        return number;
    }

    /**
     * 
     */
    public void setNumber(Integer number) {
        this.number = number;
    }

    /**
     * 
     */
    public Date getTime() {
        return time;
    }

    /**
     * 
     */
    public void setTime(Date time) {
        this.time = time;
    }

    /**
     * 
     */
    public Integer getShow() {
        return show;
    }

    /**
     * 
     */
    public void setShow(Integer show) {
        this.show = show;
    }

    /**
     * 
     */
    public String getAuthorimg() {
        return authorimg;
    }

    /**
     * 
     */
    public void setAuthorimg(String authorimg) {
        this.authorimg = authorimg;
    }

    /**
     * 
     */
    public String getContentimg() {
        return contentimg;
    }

    /**
     * 
     */
    public void setContentimg(String contentimg) {
        this.contentimg = contentimg;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TestmodelTopic other = (TestmodelTopic) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTopic() == null ? other.getTopic() == null : this.getTopic().equals(other.getTopic()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getAuthor() == null ? other.getAuthor() == null : this.getAuthor().equals(other.getAuthor()))
            && (this.getAuthorid() == null ? other.getAuthorid() == null : this.getAuthorid().equals(other.getAuthorid()))
            && (this.getUp() == null ? other.getUp() == null : this.getUp().equals(other.getUp()))
            && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
            && (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()))
            && (this.getShow() == null ? other.getShow() == null : this.getShow().equals(other.getShow()))
            && (this.getAuthorimg() == null ? other.getAuthorimg() == null : this.getAuthorimg().equals(other.getAuthorimg()))
            && (this.getContentimg() == null ? other.getContentimg() == null : this.getContentimg().equals(other.getContentimg()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTopic() == null) ? 0 : getTopic().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getAuthor() == null) ? 0 : getAuthor().hashCode());
        result = prime * result + ((getAuthorid() == null) ? 0 : getAuthorid().hashCode());
        result = prime * result + ((getUp() == null) ? 0 : getUp().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
        result = prime * result + ((getShow() == null) ? 0 : getShow().hashCode());
        result = prime * result + ((getAuthorimg() == null) ? 0 : getAuthorimg().hashCode());
        result = prime * result + ((getContentimg() == null) ? 0 : getContentimg().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", topic=").append(topic);
        sb.append(", content=").append(content);
        sb.append(", author=").append(author);
        sb.append(", authorid=").append(authorid);
        sb.append(", up=").append(up);
        sb.append(", number=").append(number);
        sb.append(", time=").append(time);
        sb.append(", show=").append(show);
        sb.append(", authorimg=").append(authorimg);
        sb.append(", contentimg=").append(contentimg);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}